package com.budwk.app.enterprise.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 仓储物流信息
 */

@Data
@Accessors(chain = true)
@Table("dfxy_enterprise.zb_warehouse_logistics")
@Comment("仓储物流信息")
@ApiModel(description = "仓储物流信息")
public class WarehouseLogistics extends BaseCommonModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("ID")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("storage_location")
    @Comment("仓储地点")
    @ApiModelProperty(description = "仓储地点")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String storageLocation;

    @Column("inventory")
    @Comment("库存量")
    @ApiModelProperty(description = "库存量")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String inventory;

    @Column("logistics_methods")
    @Comment("物流方式（如海运、空运）")
    @ApiModelProperty(description = "物流方式（如海运、空运）")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String logisticsMethods;

    @Column("transport_vehicles")
    @Comment("运输工具（如集装箱号）")
    @ApiModelProperty(description = "运输工具（如集装箱号）")
    @ColDefine(type = ColType.VARCHAR, width = 100)
    private String transportVehicles;

    @Column("entry_exit_warehouse")
    @Comment("进出仓记录")
    @ApiModelProperty(description = "进出仓记录")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String entryExitWarehouse;
}















